package com.zjxf.token;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import org.apache.shiro.authc.UsernamePasswordToken;

import java.io.Serializable;

/**
 * created with IntelliJ IDEA
 *
 * @author: create by limu
 * Date: 2020/3/28
 * Time：10:24
 */
@Setter
@Getter
@AllArgsConstructor
public class MyUserNamePasswordToken extends UsernamePasswordToken implements Serializable {

    /**
     * 登录类型
     */
    private Integer loginType;

    public MyUserNamePasswordToken(String username, String password, Boolean rememberMe) {
        super(username, password, rememberMe);
    }

    public MyUserNamePasswordToken(String username, String password, Boolean rememberMe, Integer loginType) {
        super(username, password, rememberMe);
        this.loginType = loginType;
    }

    public MyUserNamePasswordToken(String username, String password, Long mechanismId, Boolean rememberMe, Integer loginType) {
        super(username, password, rememberMe);
        this.loginType = loginType;
    }

    public MyUserNamePasswordToken(String username, String password, Long mechanismId, Integer systemEdu, Boolean rememberMe, Integer loginType) {
        super(username, password, rememberMe);
        this.loginType = loginType;
    }
}
